 var id = getvl("id");
 var currentPage=1;
 $(function(){
 	   if(id!=null){
 	   	  wodeyue(id);
 	   	$("#chakan").attr("href","12.12.1wodeyue_chakan.html?id="+id);
 	   }else{
 	   	alert("登录异常...");
 	   }
 });
 
 
function wodeyue(id){
	$.ajax({      
		url: urlcore + "/api/userAccount/selectUserAccountDetails2?id="+id,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
	          var blockMoney=data.data.balanceMoney; //可用余额
	          var getMoneySum=data.data.getMoneySum; //累计收入
	          var sendMoneySum=data.data.sendMoneySum; //累计支出
              $("#keyongyue").html("&yen;"+blockMoney);
              $("#leijishouru").text(getMoneySum);
              $("#leijixiaofei").text(sendMoneySum);
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	

	
}



//充值
function chongzhi(){
	   window.location.href="../12.3.0chongzhi.html";
}
